package com.nvc.homeplan;

import android.app.*;
import android.content.Intent;
import android.os.Bundle;
import android.view.*;
import android.widget.*;

public class ConceptPlanSearchPage  extends Activity 
{
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.concept_plan_search_page);
    }	

    public void optionCheckBoxClickHandler(View target) 
    {
    	HomePlanApplication application = (HomePlanApplication) getApplication();
    	application.searchType = "";
    	CheckBox chkbox = null;
    	switch (target.getId())
    	{
    		case R.id.concept_plan_search_page_checkbox_option2:
    			application.searchUrlQueryString = "lowsqft=1&highsqft=1499&collection=34";
    			chkbox = (CheckBox)findViewById(R.id.concept_plan_search_page_checkbox_option2);
    			break;
    		case R.id.concept_plan_search_page_checkbox_option3:
    			application.searchUrlQueryString = "lowsqft=1500&highsqft=1999&collection=34";
    			chkbox = (CheckBox)findViewById(R.id.concept_plan_search_page_checkbox_option3);
    			break;
    		case R.id.concept_plan_search_page_checkbox_option4:
    			application.searchUrlQueryString = "lowsqft=2000&highsqft=2499&collection=34";
    			chkbox = (CheckBox)findViewById(R.id.concept_plan_search_page_checkbox_option4);
    			break;
    		case R.id.concept_plan_search_page_checkbox_option5:
    			application.searchUrlQueryString = "lowsqft=2500&highsqft=2999&collection=34";
    			chkbox = (CheckBox)findViewById(R.id.concept_plan_search_page_checkbox_option5);
    			break;
    		case R.id.concept_plan_search_page_checkbox_option6:
    			application.searchUrlQueryString = "lowsqft=3000&highsqft=99999&collection=34";
    			chkbox = (CheckBox)findViewById(R.id.concept_plan_search_page_checkbox_option6);
    			break;
    		case R.id.concept_plan_search_page_checkbox_option7:
    			application.searchUrlQueryString = "collection=34&plantype=2";
    			chkbox = (CheckBox)findViewById(R.id.concept_plan_search_page_checkbox_option7);
    			break;
    	}
        Intent intent = new Intent(Constants.INTENT_ACTION_PLAN_LIST_PAGE);
        startActivity(intent);
        chkbox.setChecked(false);
    }
    
}
